class Task(object):
    def __init__(self, name, filesystem):
        self.name = name
        self.filesystem = filesystem

class FileSystem(object):
    def __init__(self, fstype, dev):
        self.fstype = fstype
        self.dev = dev

def create(fstype, dev):
    filesystem = FileSystem(fstype, "/dev/"+dev)
    task = Task("Create Filesystem on "+dev, vars(filesystem))
    # return dict
    return vars(task)
